Integrand size = 35, antiderivative size = 588 \[ \int \frac {A+B \sec (c+d x)}{\sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^{5/2}} \, dx=-\frac {2 \left (17 a^4 A b+116 a^2 A b^3-128 A b^5-5 a^5 B-80 a^3 b^2 B+80 a b^4 B\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),\frac {2 a}{a+b}\right ) \sqrt {\sec (c+d x)}}{15 a^5 \left (a^2-b^2\right ) d \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (9 a^6 A+55 a^4 A b^2-212 a^2 A b^4+128 A b^6-40 a^5 b B+140 a^3 b^3 B-80 a b^5 B\right ) E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {a+b \sec (c+d x)}}{15 a^5 \left (a^2-b^2\right )^2 d \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}}+\frac {2 b (A b-a B) \sin (c+d x)}{3 a \left (a^2-b^2\right ) d \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x))^{3/2}}+\frac {2 b \left (12 a^2 A b-8 A b^3-9 a^3 B+5 a b^2 B\right ) \sin (c+d x)}{3 a^2 \left (a^2-b^2\right )^2 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (3 a^4 A-71 a^2 A b^2+48 A b^4+50 a^3 b B-30 a b^3 B\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{15 a^3 \left (a^2-b^2\right )^2 d \sec ^{\frac {3}{2}}(c+d x)}-\frac {2 \left (14 a^4 A b-98 a^2 A b^3+64 A b^5-5 a^5 B+65 a^3 b^2 B-40 a b^4 B\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{15 a^4 \left (a^2-b^2\right )^2 d \sqrt {\sec (c+d x)}} \]
[Out]
Time = 2.13 (sec) , antiderivative size = 588, normalized size of antiderivative = 1.00, number of steps used = 11, number of rules used = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {4115, 4185, 4189, 4120, 3941, 2734, 2732, 3943, 2742, 2740} \[ \int \frac {A+B \sec (c+d x)}{\sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^{5/2}} \, dx=\frac {2 b (A b-a B) \sin (c+d x)}{3 a d \left (a^2-b^2\right ) \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x))^{3/2}}+\frac {2 b \left (-9 a^3 B+12 a^2 A b+5 a b^2 B-8 A b^3\right ) \sin (c+d x)}{3 a^2 d \left (a^2-b^2\right )^2 \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (3 a^4 A+50 a^3 b B-71 a^2 A b^2-30 a b^3 B+48 A b^4\right ) \sin (c+d x) \sqrt {a+b \sec (c+d x)}}{15 a^3 d \left (a^2-b^2\right )^2 \sec ^{\frac {3}{2}}(c+d x)}-\frac {2 \left (-5 a^5 B+14 a^4 A b+65 a^3 b^2 B-98 a^2 A b^3-40 a b^4 B+64 A b^5\right ) \sin (c+d x) \sqrt {a+b \sec (c+d x)}}{15 a^4 d \left (a^2-b^2\right )^2 \sqrt {\sec (c+d x)}}-\frac {2 \left (-5 a^5 B+17 a^4 A b-80 a^3 b^2 B+116 a^2 A b^3+80 a b^4 B-128 A b^5\right ) \sqrt {\sec (c+d x)} \sqrt {\frac {a \cos (c+d x)+b}{a+b}} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),\frac {2 a}{a+b}\right )}{15 a^5 d \left (a^2-b^2\right ) \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (9 a^6 A-40 a^5 b B+55 a^4 A b^2+140 a^3 b^3 B-212 a^2 A b^4-80 a b^5 B+128 A b^6\right ) \sqrt {a+b \sec (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{15 a^5 d \left (a^2-b^2\right )^2 \sqrt {\sec (c+d x)} \sqrt {\frac {a \cos (c+d x)+b}{a+b}}} \]
[In]
[Out]
Rule 2732
Rule 2734
Rule 2740
Rule 2742
Rule 3941
Rule 3943
Rule 4115
Rule 4120
Rule 4185
Rule 4189
Rubi steps \begin{align*} \text {integral}& = \frac {2 b (A b-a B) \sin (c+d x)}{3 a \left (a^2-b^2\right ) d \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x))^{3/2}}-\frac {2 \int \frac {\frac {1}{2} \left (-3 a^2 A+8 A b^2-5 a b B\right )+\frac {3}{2} a (A b-a B) \sec (c+d x)-3 b (A b-a B) \sec ^2(c+d x)}{\sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^{3/2}} \, dx}{3 a \left (a^2-b^2\right )} \\ & = \frac {2 b (A b-a B) \sin (c+d x)}{3 a \left (a^2-b^2\right ) d \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x))^{3/2}}+\frac {2 b \left (12 a^2 A b-8 A b^3-9 a^3 B+5 a b^2 B\right ) \sin (c+d x)}{3 a^2 \left (a^2-b^2\right )^2 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)}}+\frac {4 \int \frac {\frac {1}{4} \left (3 a^4 A-71 a^2 A b^2+48 A b^4+50 a^3 b B-30 a b^3 B\right )-\frac {1}{4} a \left (6 a^2 A b-2 A b^3-3 a^3 B-a b^2 B\right ) \sec (c+d x)+b \left (12 a^2 A b-8 A b^3-9 a^3 B+5 a b^2 B\right ) \sec ^2(c+d x)}{\sec ^{\frac {5}{2}}(c+d x) \sqrt {a+b \sec (c+d x)}} \, dx}{3 a^2 \left (a^2-b^2\right )^2} \\ & = \frac {2 b (A b-a B) \sin (c+d x)}{3 a \left (a^2-b^2\right ) d \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x))^{3/2}}+\frac {2 b \left (12 a^2 A b-8 A b^3-9 a^3 B+5 a b^2 B\right ) \sin (c+d x)}{3 a^2 \left (a^2-b^2\right )^2 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (3 a^4 A-71 a^2 A b^2+48 A b^4+50 a^3 b B-30 a b^3 B\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{15 a^3 \left (a^2-b^2\right )^2 d \sec ^{\frac {3}{2}}(c+d x)}-\frac {8 \int \frac {\frac {3}{8} \left (14 a^4 A b-98 a^2 A b^3+64 A b^5-5 a^5 B+65 a^3 b^2 B-40 a b^4 B\right )-\frac {1}{8} a \left (9 a^4 A+27 a^2 A b^2-16 A b^4-30 a^3 b B+10 a b^3 B\right ) \sec (c+d x)-\frac {1}{4} b \left (3 a^4 A-71 a^2 A b^2+48 A b^4+50 a^3 b B-30 a b^3 B\right ) \sec ^2(c+d x)}{\sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)}} \, dx}{15 a^3 \left (a^2-b^2\right )^2} \\ & = \frac {2 b (A b-a B) \sin (c+d x)}{3 a \left (a^2-b^2\right ) d \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x))^{3/2}}+\frac {2 b \left (12 a^2 A b-8 A b^3-9 a^3 B+5 a b^2 B\right ) \sin (c+d x)}{3 a^2 \left (a^2-b^2\right )^2 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (3 a^4 A-71 a^2 A b^2+48 A b^4+50 a^3 b B-30 a b^3 B\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{15 a^3 \left (a^2-b^2\right )^2 d \sec ^{\frac {3}{2}}(c+d x)}-\frac {2 \left (14 a^4 A b-98 a^2 A b^3+64 A b^5-5 a^5 B+65 a^3 b^2 B-40 a b^4 B\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{15 a^4 \left (a^2-b^2\right )^2 d \sqrt {\sec (c+d x)}}+\frac {16 \int \frac {\frac {3}{16} \left (9 a^6 A+55 a^4 A b^2-212 a^2 A b^4+128 A b^6-40 a^5 b B+140 a^3 b^3 B-80 a b^5 B\right )-\frac {3}{16} a \left (8 a^4 A b+44 a^2 A b^3-32 A b^5-5 a^5 B-35 a^3 b^2 B+20 a b^4 B\right ) \sec (c+d x)}{\sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)}} \, dx}{45 a^4 \left (a^2-b^2\right )^2} \\ & = \frac {2 b (A b-a B) \sin (c+d x)}{3 a \left (a^2-b^2\right ) d \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x))^{3/2}}+\frac {2 b \left (12 a^2 A b-8 A b^3-9 a^3 B+5 a b^2 B\right ) \sin (c+d x)}{3 a^2 \left (a^2-b^2\right )^2 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (3 a^4 A-71 a^2 A b^2+48 A b^4+50 a^3 b B-30 a b^3 B\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{15 a^3 \left (a^2-b^2\right )^2 d \sec ^{\frac {3}{2}}(c+d x)}-\frac {2 \left (14 a^4 A b-98 a^2 A b^3+64 A b^5-5 a^5 B+65 a^3 b^2 B-40 a b^4 B\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{15 a^4 \left (a^2-b^2\right )^2 d \sqrt {\sec (c+d x)}}-\frac {\left (17 a^4 A b+116 a^2 A b^3-128 A b^5-5 a^5 B-80 a^3 b^2 B+80 a b^4 B\right ) \int \frac {\sqrt {\sec (c+d x)}}{\sqrt {a+b \sec (c+d x)}} \, dx}{15 a^5 \left (a^2-b^2\right )}+\frac {\left (9 a^6 A+55 a^4 A b^2-212 a^2 A b^4+128 A b^6-40 a^5 b B+140 a^3 b^3 B-80 a b^5 B\right ) \int \frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx}{15 a^5 \left (a^2-b^2\right )^2} \\ & = \frac {2 b (A b-a B) \sin (c+d x)}{3 a \left (a^2-b^2\right ) d \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x))^{3/2}}+\frac {2 b \left (12 a^2 A b-8 A b^3-9 a^3 B+5 a b^2 B\right ) \sin (c+d x)}{3 a^2 \left (a^2-b^2\right )^2 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (3 a^4 A-71 a^2 A b^2+48 A b^4+50 a^3 b B-30 a b^3 B\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{15 a^3 \left (a^2-b^2\right )^2 d \sec ^{\frac {3}{2}}(c+d x)}-\frac {2 \left (14 a^4 A b-98 a^2 A b^3+64 A b^5-5 a^5 B+65 a^3 b^2 B-40 a b^4 B\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{15 a^4 \left (a^2-b^2\right )^2 d \sqrt {\sec (c+d x)}}-\frac {\left (\left (17 a^4 A b+116 a^2 A b^3-128 A b^5-5 a^5 B-80 a^3 b^2 B+80 a b^4 B\right ) \sqrt {b+a \cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {b+a \cos (c+d x)}} \, dx}{15 a^5 \left (a^2-b^2\right ) \sqrt {a+b \sec (c+d x)}}+\frac {\left (\left (9 a^6 A+55 a^4 A b^2-212 a^2 A b^4+128 A b^6-40 a^5 b B+140 a^3 b^3 B-80 a b^5 B\right ) \sqrt {a+b \sec (c+d x)}\right ) \int \sqrt {b+a \cos (c+d x)} \, dx}{15 a^5 \left (a^2-b^2\right )^2 \sqrt {b+a \cos (c+d x)} \sqrt {\sec (c+d x)}} \\ & = \frac {2 b (A b-a B) \sin (c+d x)}{3 a \left (a^2-b^2\right ) d \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x))^{3/2}}+\frac {2 b \left (12 a^2 A b-8 A b^3-9 a^3 B+5 a b^2 B\right ) \sin (c+d x)}{3 a^2 \left (a^2-b^2\right )^2 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (3 a^4 A-71 a^2 A b^2+48 A b^4+50 a^3 b B-30 a b^3 B\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{15 a^3 \left (a^2-b^2\right )^2 d \sec ^{\frac {3}{2}}(c+d x)}-\frac {2 \left (14 a^4 A b-98 a^2 A b^3+64 A b^5-5 a^5 B+65 a^3 b^2 B-40 a b^4 B\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{15 a^4 \left (a^2-b^2\right )^2 d \sqrt {\sec (c+d x)}}-\frac {\left (\left (17 a^4 A b+116 a^2 A b^3-128 A b^5-5 a^5 B-80 a^3 b^2 B+80 a b^4 B\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\frac {b}{a+b}+\frac {a \cos (c+d x)}{a+b}}} \, dx}{15 a^5 \left (a^2-b^2\right ) \sqrt {a+b \sec (c+d x)}}+\frac {\left (\left (9 a^6 A+55 a^4 A b^2-212 a^2 A b^4+128 A b^6-40 a^5 b B+140 a^3 b^3 B-80 a b^5 B\right ) \sqrt {a+b \sec (c+d x)}\right ) \int \sqrt {\frac {b}{a+b}+\frac {a \cos (c+d x)}{a+b}} \, dx}{15 a^5 \left (a^2-b^2\right )^2 \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}} \\ & = -\frac {2 \left (17 a^4 A b+116 a^2 A b^3-128 A b^5-5 a^5 B-80 a^3 b^2 B+80 a b^4 B\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),\frac {2 a}{a+b}\right ) \sqrt {\sec (c+d x)}}{15 a^5 \left (a^2-b^2\right ) d \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (9 a^6 A+55 a^4 A b^2-212 a^2 A b^4+128 A b^6-40 a^5 b B+140 a^3 b^3 B-80 a b^5 B\right ) E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {a+b \sec (c+d x)}}{15 a^5 \left (a^2-b^2\right )^2 d \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}}+\frac {2 b (A b-a B) \sin (c+d x)}{3 a \left (a^2-b^2\right ) d \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x))^{3/2}}+\frac {2 b \left (12 a^2 A b-8 A b^3-9 a^3 B+5 a b^2 B\right ) \sin (c+d x)}{3 a^2 \left (a^2-b^2\right )^2 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (3 a^4 A-71 a^2 A b^2+48 A b^4+50 a^3 b B-30 a b^3 B\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{15 a^3 \left (a^2-b^2\right )^2 d \sec ^{\frac {3}{2}}(c+d x)}-\frac {2 \left (14 a^4 A b-98 a^2 A b^3+64 A b^5-5 a^5 B+65 a^3 b^2 B-40 a b^4 B\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{15 a^4 \left (a^2-b^2\right )^2 d \sqrt {\sec (c+d x)}} \\ \end{align*}
Time = 5.71 (sec) , antiderivative size = 392, normalized size of antiderivative = 0.67 \[ \int \frac {A+B \sec (c+d x)}{\sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^{5/2}} \, dx=\frac {(b+a \cos (c+d x)) \sec ^{\frac {5}{2}}(c+d x) \left (-\frac {2 \left (\frac {b+a \cos (c+d x)}{a+b}\right )^{3/2} \left (a^2 \left (8 a^4 A b+44 a^2 A b^3-32 A b^5-5 a^5 B-35 a^3 b^2 B+20 a b^4 B\right ) \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),\frac {2 a}{a+b}\right )-\left (9 a^6 A+55 a^4 A b^2-212 a^2 A b^4+128 A b^6-40 a^5 b B+140 a^3 b^3 B-80 a b^5 B\right ) \left ((a+b) E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )-b \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),\frac {2 a}{a+b}\right )\right )\right )}{(a-b)^2 (a+b)}+a \left (\frac {10 b^4 (A b-a B) \sin (c+d x)}{-a^2+b^2}-\frac {10 b^3 \left (-15 a^2 A b+11 A b^3+12 a^3 B-8 a b^2 B\right ) (b+a \cos (c+d x)) \sin (c+d x)}{\left (a^2-b^2\right )^2}-2 (14 A b-5 a B) (b+a \cos (c+d x))^2 \sin (c+d x)+3 a A (b+a \cos (c+d x))^2 \sin (2 (c+d x))\right )\right )}{15 a^5 d (a+b \sec (c+d x))^{5/2}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(10103\) vs. \(2(606)=1212\).
Time = 24.99 (sec) , antiderivative size = 10104, normalized size of antiderivative = 17.18
method | result | size |
parts | \(\text {Expression too large to display}\) | \(10104\) |
default | \(\text {Expression too large to display}\) | \(10180\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.30 (sec) , antiderivative size = 1531, normalized size of antiderivative = 2.60 \[ \int \frac {A+B \sec (c+d x)}{\sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^{5/2}} \, dx=\text {Too large to display} \]
[In]
[Out]
Timed out. \[ \int \frac {A+B \sec (c+d x)}{\sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^{5/2}} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {A+B \sec (c+d x)}{\sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^{5/2}} \, dx=\int { \frac {B \sec \left (d x + c\right ) + A}{{\left (b \sec \left (d x + c\right ) + a\right )}^{\frac {5}{2}} \sec \left (d x + c\right )^{\frac {5}{2}}} \,d x } \]
[In]
[Out]
\[ \int \frac {A+B \sec (c+d x)}{\sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^{5/2}} \, dx=\int { \frac {B \sec \left (d x + c\right ) + A}{{\left (b \sec \left (d x + c\right ) + a\right )}^{\frac {5}{2}} \sec \left (d x + c\right )^{\frac {5}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {A+B \sec (c+d x)}{\sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^{5/2}} \, dx=\int \frac {A+\frac {B}{\cos \left (c+d\,x\right )}}{{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^{5/2}\,{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{5/2}} \,d x \]
[In]
[Out]